package day4;

public class Student {
    public String name;
    private Integer age;
    protected String sex;

    public Student(String name) {
        System.out.println("有参构造");
    }

    public Student() {
    }

    private void study() {
        System.out.println("学习");
    }

    public int math(Integer n, Integer m) {
        System.out.println("计算加法:" + n + "+" + m);
        return n + m;
    }
}

class Teacher {
    public void school(String name) {
        System.out.println("开始上课");
    }

    public String getInfo() {
        System.out.println("获取老师信息");
        return "老师,38岁...";
    }

    public void sum(int java, Integer mysql) {
        System.out.println("成绩总和:" + (java + mysql));
    }

}
